/*  dataForController_t.h
 *
 *	  Nick Klaus - 2014
 *
 *  This is simply a typedef for a struct
 *   that holds information about controller
 *   button presses.  It is used by the controller
 *   libraries to pass information from an application
 *   to a library function that formats and sends
 *   appropriate controller data
 */

#ifndef DATA_FOR_CONTROLLER_T
#define DATA_FOR_CONTROLLER_T

// variables to abstractly tell us which buttons are pressed.
typedef struct dataForController_t
{
	uint8_t bt0On : 1;
	uint8_t bt1On : 1;
	uint8_t bt2On : 1;
	uint8_t bt3On : 1;
	uint8_t bt4On : 1;
	uint8_t bt5On : 1;
	uint8_t bt6On : 1;
	uint8_t bt7On : 1;
	
	uint8_t bt8On : 1;
	uint8_t bt9On : 1;
	uint8_t bt10On : 1;
	uint8_t bt11On : 1;
	uint8_t bt12On : 1;
	uint8_t bt13On : 1;
	uint8_t bt14On : 1;
	uint8_t bt15On : 1;
	
	uint8_t bt16On : 1;
	uint8_t bt17On : 1;
	uint8_t bt18On : 1;
	uint8_t bt19On : 1;
	uint8_t bt20On : 1;
	uint8_t bt21On : 1;
	uint8_t bt22On : 1;
	uint8_t bt23On : 1;
	
	uint8_t bt24On : 1;
	uint8_t bt25On : 1;
	uint8_t bt26On : 1;
	uint8_t bt27On : 1;
	uint8_t bt28On : 1;
	uint8_t bt29On : 1;
	uint8_t bt30On : 1;
	uint8_t bt31On : 1;
	
	uint8_t bt32On : 1;
	uint8_t bt33On : 1;
	uint8_t bt34On : 1;
	uint8_t bt35On : 1;
	uint8_t bt36On : 1;
	uint8_t bt37On : 1;
	uint8_t bt38On : 1;
	uint8_t bt39On : 1;
	
	uint8_t bt40On : 1;
	uint8_t bt41On : 1;
	uint8_t bt42On : 1;
	uint8_t bt43On : 1;
	uint8_t bt44On : 1;
	uint8_t bt45On : 1;
	uint8_t bt46On : 1;
	uint8_t bt47On : 1;
	
	uint8_t bt48On : 1;
	uint8_t bt49On : 1;
	uint8_t bt50On : 1;
	uint8_t bt51On : 1;
	uint8_t bt52On : 1;
	uint8_t bt53On : 1;
	uint8_t bt54On : 1;
	uint8_t bt55On : 1;
	
	uint8_t bt56On : 1;
	uint8_t bt57On : 1;
	uint8_t bt58On : 1;
	uint8_t bt59On : 1;
	uint8_t bt60On : 1;
	uint8_t bt61On : 1;
	uint8_t bt62On : 1;
	uint8_t bt63On : 1;
	
	uint8_t bt64On : 1;
	uint8_t bt65On : 1;
	uint8_t bt66On : 1;
	uint8_t bt67On : 1;
	uint8_t bt68On : 1;
	uint8_t bt69On : 1;
	uint8_t bt70On : 1;
	uint8_t bt71On : 1;
	
	uint8_t bt72On : 1;
	uint8_t bt73On : 1;
	uint8_t bt74On : 1;
	uint8_t bt75On : 1;
	uint8_t bt76On : 1;
	uint8_t bt77On : 1;
	uint8_t bt78On : 1;
	uint8_t bt79On : 1;
	
	uint8_t bt80On : 1;
	uint8_t bt81On : 1;
	uint8_t bt82On : 1;
	uint8_t bt83On : 1;
	uint8_t bt84On : 1;
	uint8_t bt85On : 1;
	uint8_t bt86On : 1;
	uint8_t bt87On : 1;
	
	uint8_t bt88On : 1;
	uint8_t bt89On : 1;
	uint8_t bt90On : 1;
	uint8_t bt91On : 1;
	uint8_t bt92On : 1;
	uint8_t bt93On : 1;
	uint8_t bt94On : 1;
	uint8_t bt95On : 1;
	
	uint8_t bt96On : 1;
	uint8_t bt97On : 1;
	uint8_t bt98On : 1;
	uint8_t bt99On : 1;
	uint8_t bt100On : 1;
	uint8_t bt101On : 1;
	uint8_t bt102On : 1;
	uint8_t bt103On : 1;
	
	uint8_t bt104On : 1;
	uint8_t bt105On : 1;
	uint8_t bt106On : 1;
	uint8_t bt107On : 1;
	uint8_t bt108On : 1;
	uint8_t bt109On : 1;
	uint8_t bt110On : 1;
	uint8_t bt111On : 1;
	
	uint8_t bt112On : 1;
	uint8_t bt113On : 1;
	uint8_t bt114On : 1;
	uint8_t bt115On : 1;
	uint8_t bt116On : 1;
	uint8_t bt117On : 1;
	uint8_t bt118On : 1;
	uint8_t bt119On : 1;
	
	uint8_t bt120On : 1;
	uint8_t bt121On : 1;
	uint8_t bt122On : 1;
	uint8_t bt123On : 1;
	uint8_t bt124On : 1;
	uint8_t bt125On : 1;
	uint8_t bt126On : 1;
	uint8_t bt127On : 1;

	uint8_t al0 : 8;
	uint8_t al1 : 8;
	uint8_t al2 : 8;
	uint8_t al3 : 8;
	uint8_t al4 : 8;
	uint8_t al5 : 8;
	uint8_t al6 : 8;
	uint8_t al7 : 8;
	uint8_t al8 : 8;
	uint8_t al9 : 8;
	uint8_t al10 : 8;
	uint8_t al11 : 8;
	uint8_t al12 : 8;
	uint8_t al13 : 8;
	uint8_t al14 : 8;
	uint8_t al15 : 8;
	
	uint8_t al16 : 8;
	uint8_t al17 : 8;
	uint8_t al18 : 8;
	uint8_t al19 : 8;
	uint8_t al20 : 8;
	uint8_t al21 : 8;
	uint8_t al22 : 8;
	uint8_t al23 : 8;
	uint8_t al24 : 8;
	uint8_t al25 : 8;
	uint8_t al26 : 8;
	uint8_t al27 : 8;
	uint8_t al28 : 8;
	uint8_t al29 : 8;
	uint8_t al30 : 8;
	uint8_t al31 : 8;
	
	uint8_t al32 : 8;
	uint8_t al33 : 8;
	uint8_t al34 : 8;
	uint8_t al35 : 8;
	uint8_t al36 : 8;
	uint8_t al37 : 8;
	uint8_t al38 : 8;
	uint8_t al39 : 8;
	uint8_t al40 : 8;
	uint8_t al41 : 8;
	uint8_t al42 : 8;
	uint8_t al43 : 8;
	uint8_t al44 : 8;
	uint8_t al45 : 8;
	uint8_t al46 : 8;
	uint8_t al47 : 8;
	

	
} dataForController_t;



#endif

